<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;

class Category extends Eloquent {

	use SoftDeletingTrait;

	protected $dates = ['deleted_at'];
	
	protected $table = 'category';
	 
	/**
	 * Relates to Main Category Category (Associate Table).
	 * @author AngelaMisa 03/11/2015 6:52PM
	 * @return mixed
	 */
	public function mainCategoryCategory() {
		return $this->hasOne('MainCategoryCategory', 'CATEGORY_id', 'id');
	}
}